package com.braveo.dict.creator.common;

import java.sql.SQLException;
import java.util.Collection;

public interface DictDb {
	void openDatabase() throws SQLException;
	void closeDatabase() throws SQLException;
	void addOneWord(WordEntry entry) throws SQLException;
	void addWords(Collection<? extends WordEntry> word) throws SQLException;
	int findWordIdByWord(String word) throws SQLException;
}
